-
Notifications
You must be signed in to change notification settings - Fork 38.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Services e2e cleanup #14957
Services e2e cleanup #14957
Conversation
Unit, integration and GCE e2e test build/test passed for commit d6945c231b115f2b7f3c42f712278efc50328d95. |
Labelling this PR as size/XL |
Thanks - those tests were causing a lot of pain! |
@thockin I'd rather see func poller(interval, timeout time.Duration, immediateCheck bool) WaitFunc {
return WaitFunc(func() <-chan struct{} {
ch := make(chan struct{})
go func() {
if immediateCheck {
// send to the channel once immediately, rather than waiting for the first
// interval to elapse
ch <- struct{}{}
} And then you can implement Ultimately, I'd like us to end up with just 1 function, |
@ncdc the problem with putting it in the poller() func is that tests (which I added, ahem) inject their own need to replicate that logic. I think its cleaner to make that external to the test-provided WaitFunc. Agree with the end goal of one function that does the right thing. I'd also like to eventually get rid of the "one last time" call on channel close - it's just a weird semantic, but apparently at least some code in the system depends on it (tests break). |
I moved the wait change to #14996 - will rebase this when that is in. |
Unit, integration and GCE e2e test build/test passed for commit dba564f7a0ee1b987f0bbfd73732bc20aec76314. |
This LGTM wrt service changes but I'm still in Central European time, haven't had coffee, and I'm reviewing this on a phone. |
Rebased now that PollImmediate is in |
Unit, integration and GCE e2e test build/test passed for commit 2f7552050bb37df319699259782005288734e84a. |
@thockin needs another rebase, by the looks of things. |
Unit, integration and GCE e2e test build/test passed for commit ada7489. |
…-#14957-upstream-release-1.1 Automated cherry pick of #14957 upstream release 1.1
…ry-pick-of-#14957-upstream-release-1.1 Automated cherry pick of kubernetes#14957 upstream release 1.1
…ry-pick-of-#14957-upstream-release-1.1 Automated cherry pick of kubernetes#14957 upstream release 1.1
Lots of misc cleanups to emit less noise during testing.
Flatten 3 tests which create load-balancers (slow) into one test.
Reduce e2e polling time in util.
Add a wait.PollImmediate() function (was a TODO) which dramatically speeds up e2e.
This test used to take 15+ minutes on my own e2e cluster and now takes less than 8 minutes.